package chenji.itemeditor.itemeditor;

public enum HideFlag {
	ENCH(1), ATTRBUTE(2), UNBREAKABLE(4), CANBREAKBLOCK(8), CANPLACEBLOCK(16), OTHERS(32);

	private int id;

	private HideFlag(int id) {
		this.id = id;
	}

	public int getID() {
		return this.id;
	}

	public static HideFlag getByID(int id) {
		switch (id) {
		case 1:
			return HideFlag.ENCH;
		case 2:
			return HideFlag.ATTRBUTE;
		case 4:
			return HideFlag.UNBREAKABLE;
		case 8:
			return HideFlag.CANBREAKBLOCK;
		case 16:
			return HideFlag.CANPLACEBLOCK;
		case 32:
			return HideFlag.OTHERS;
		}
		return null;
	}

}
